package com.bwda.dsrs.systemservice.aspect;

/**
 * simple introduction
 *
 * @author yanyuemei
 * @date
 */
public enum LogScopeEnum {
    /**
     * LogScopeEnum
     */
    ALL,BEFORE, AFTER;
    public boolean contains(LogScopeEnum scope) {
        if (this == ALL) {
            return true;
         } else {
             return this == scope;
         }
    }

    @Override
    public String toString() {
        String str = "";
        switch (this) {
            case ALL:
                break;
            case BEFORE:
                str = "REQUEST";
                break;
            case AFTER:
                str = "RESPONSE";
                break;
            default:
                break;
        }
        return str;
    }
}
